$OpenBSD: patch-src_common_common_h,v 1.3 2014/09/29 18:23:15 kirby Exp $

Commited upstream ee51106ced2f17bcdd5cf6c706627f41f3f6c175

--- src/common/common.h.orig	Thu Jun  5 08:18:39 2014
+++ src/common/common.h	Tue Jul  1 19:37:31 2014
@@ -49,8 +49,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 #    define SO_EXT "so"
 #  endif
 
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__)
 #  define BUILDSTRING_OS "FreeBSD"
+#  ifndef SO_EXT
+#    define SO_EXT "so"
+#  endif
+
+#elif defined(__OpenBSD__)
+#  define BUILDSTRING_OS "OpenBSD"
+#  ifndef SO_EXT
+#    define SO_EXT "so"
+#  endif
+
+#elif defined(__NetBSD__)
+#  define BUILDSTRING_OS "NetBSD"
 #  ifndef SO_EXT
 #    define SO_EXT "so"
 #  endif
